package cn.rongdao.jrkabao.model.cashadvance;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.main.personal.PersonUserInfoBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/17
 */

public class MyLoanModel extends BaseSuDaiModel {

    public static MyLoanModel getInstance() {
        return getPresent(MyLoanModel.class);
    }

    public void execute(Observer<PersonUserInfoBean> observer) {
        Observable<PersonUserInfoBean> observable = mServletApi.getPersonUserInfo(mParams).map(new HttpFunction<PersonUserInfoBean>());
        toSubscribe(observable, observer);
    }
}